﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Form</title>
</head>
<body>
    <div>
        @using (Html.BeginForm())
        {
            <p> Your name @Html.TextBox("Name") </p>
            <p> Your email @Html.TextBox("Email") </p>
            <p> Your phone @Html.TextBox("Phone") </p>
            <p> Will you go?
                @Html.DropDownList("Will attend", new[]{
               new SelectListItem{ Text = "Yes", Value = bool.TrueString}, 
               new SelectListItem{ Text = "No", Value = bool.FalseString}},
               "Choose an option") 
            </p>
            
            <input type ="submit" value =" Submit"/>
        }
    </div>
</body>
</html>
